package com.cobo.fitness.web.post.routes;

import com.cobo.common.core.R;
import com.cobo.fitness.core.entrypoint.HttpApi;
import com.cobo.fitness.web.post.entity.Post;
import com.cobo.fitness.web.post.entity.Tag;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

@RestController
@RequestMapping("/tag")
public class TagRouter {




    @GetMapping("/**")
    public R<?> handler(HttpServletRequest request,
                     HttpServletResponse response,
                     @RequestBody(required = false) Map<String,Object> params) {
        return HttpApi.handler(Tag.class, params, request, response);
    }
}
